package org.mclll.xwangplugin.town.database.mapper;

import org.apache.ibatis.annotations.Param;
import org.mclll.xwangplugin.town.database.domain.TownPlayerDO;

import java.util.List;

/**
 * @author: geduo
 * @date: 2023/9/22 16:09
 */
public interface TownPlayerMapper {

    /**
     * 查询玩家列表
     *
     * @param townPlayerDO -
     * @return -
     */
    List<TownPlayerDO> selectList(@Param("townPlayer") TownPlayerDO townPlayerDO);

    /**
     * 根据uuid更新信息
     *
     * @param townPlayerDO -
     */
    void updateByUuid(@Param("townPlayer") TownPlayerDO townPlayerDO);

    /**
     * 插入玩家信息
     *
     * @param townPlayerDO -
     */
    void insert(@Param("townPlayer") TownPlayerDO townPlayerDO);

    /**
     * 根据uuid查询玩家信息
     *
     * @param uuid -
     * @return -
     */
    TownPlayerDO selectByUuid(@Param("uuid") String uuid);

    /**
     * 创建表
     */
    void createTable();

    void update(@Param("param") TownPlayerDO param, @Param("where") TownPlayerDO where);
}
